//
//  ProductClassViewController.m
//  NOAHWM
//
//  Created by Frank on 6/5/13.
//  Copyright (c) 2013 Ryan. All rights reserved.
//

#import "ProductClassViewController.h"
#import <UIKit/UIKit.h>

@interface ProductClassViewController ()

@end

@implementation ProductClassViewController
@synthesize stickButton;
@synthesize floatButton;
@synthesize timeSegmentControl;
@synthesize riskSegmentControl;
@synthesize yieldSegmentControl;
@synthesize availabeSwitch;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)dealloc{
    [stickButton release];
    [floatButton release];
    [timeSegmentControl release];
    [riskSegmentControl release];
    [yieldSegmentControl release];
    [availabeSwitch release];
    [super dealloc];
}

- (IBAction)stickButtonPressed:(UIButton*)sender {
    self.stickButton.selected = !self.stickButton.selected;
}

- (IBAction)floatButtonPressed:(id)sender {
    self.floatButton.selected = !self.floatButton.selected;
}

- (IBAction)yieldSegmentPressed:(id)sender {
    NSLog(@"yield = %d", self.yieldSegmentControl.selectedSegmentIndex);
}

- (IBAction)timeSegmentPressed:(id)sender {
    
}

- (IBAction)riskSegmentPressed:(id)sender {
    
}


- (IBAction)switchPressed:(id)sender {
    
}
@end
